<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8" />
    <meta
      name="viewport"
      content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover"
    />
    <title>Header模块</title>
    <style>
      body,
      html {
        margin: 0;
        padding: 0;
        overflow: hidden;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1rem;
      }
    </style>
  </head>
  <body>
    Header模块
    <script>
      document.writeln(JSON.stringify(window.xIpc.getVersion()));
      // window.xIpc.getModules().then((data) => {
      //   document.writeln(JSON.stringify(data.modulesList.map((i) => i.name)));
      // });
      document.writeln(JSON.stringify(window.location.href));
    </script>
  </body>
</html>
